﻿@model Kelper.Domain.Models.User

@{
    ViewBag.Title = "Kelper - Visiting " + Model.Username;
}

<h2>Visiting @Model.Username</h2>

<div class="user">
    <div class="user-summary">
        @Model.Username has
        @Model.Recipes.Count.Pluralize("written one recipe", "written {0} recipes", "not written any recipes!")
    </div>

    <div class="user-recipes">
        @foreach (var r in Model.Recipes) {
            @Html.DisplayFor(m => r)
        }
    </div>

    <div style="clear:both;"></div>
</div>